<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>修改图书信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">

    <link rel="shortcut icon" href="assets/ico/favicon.html">
    <link href="/13110100825/bookstore/Public/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/13110100825/bookstore/Public/assets/css/theme.css" rel="stylesheet">
    <link href="/13110100825/bookstore/Public/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/13110100825/bookstore/Public/assets/css/alertify.css" rel="stylesheet">
    <link href="/13110100825/bookstore/Public/bootstrap/bootstrap-wizard.css" rel="stylesheet" />

    <link rel="Favicon Icon" href="/13110100825/bookstore/Public/favicon.ico">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="/13110100825/bookstore/Public/assets/img/logo.png" alt="Realm Admin Template">
          </div>
           <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
           <a class="btn btn-navbar slide_menu_left visible-tablet">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>

          <div class="top-menu visible-desktop">
           
            <ul class="pull-right">  
              <li><a href="login.html"><i class="icon-off"></i> 注销</a></li>
            </ul>
          </div>

          <div class="top-menu visible-phone visible-tablet">
            <ul class="pull-right">  
              <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i class="icon-envelope"></i></a></li>
              <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i class="icon-globe"></i></a></li>
              <li><a href="login.html"><i class="icon-off"></i></a></li>
            </ul>
          </div>

        </div>
      </div>
    </div>

    <div class="container-fluid">

      <!-- Side menu -->
        <div class="sidebar-nav nav-collapse collapse">
            <div class="user_side clearfix">
                <img src="/13110100825/bookstore/Public/assets/img/odinn.jpg" alt="Odinn god of Thunder">
                <h5>管理员</h5>
                <a href="#"><i class="icon-cog"></i> 个人设置</a>
            </div>
            <div class="accordion" id="accordion2">
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_F5C294"  data-parent="#accordion2"  data-toggle="collapse" href="#collapse0"><i class="icon-user"></i> <span>用户管理</span></a>
                    </div>
                    <div id="collapse0" class="accordion-body  collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/users"><i class="icon-star"></i> 浏览用户列表</a>
                        </div>
                    </div>
                </div>
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse1"><i class="icon-magic"></i> <span>书籍管理</span></a>
                    </div>
                    <div id="collapse1" class="accordion-body  collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/books"><i class="icon-star"></i> 浏览书籍列表</a>
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/addBooks"><i class="icon-circle"></i> 添加书籍</a>
                        </div>
                    </div>
                </div>

                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_9FDDF6 collapsed" data-toggle="collapse" data-parent="#accordion2" href="#collapse2">
                            <i class="icon-reorder"></i> <span>类别管理</span></a>
                    </div>
                    <div id="collapse2" class="accordion-body collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/classlist"><i class="icon-rss"></i> 类别列表</a>
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/CreateClass"><i class="icon-rss"></i> 创建类别</a>
                        </div>
                    </div>
                </div>
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle b_9FDDF6 collapsed"  data-parent="#accordion2"  data-toggle="collapse" href="#collapse01"><i class="icon-user"></i> <span>标签管理</span></a>
                    </div>
                    <div id="collapse01" class="accordion-body  collapse">
                        <div class="accordion-inner">
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/signlist"><i class="icon-star"></i> 浏览标签列表</a>
                            <a class="accordion-toggle" href="/13110100825/bookstore/Admin/Index/addsign"><i class="icon-star"></i> 添加标签</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>



        <!-- Main window -->
    <div class="main_container" id="tables_page">
			<div class="row-fluid">
				<br>
				<h2 class="heading">
					<i class="icon-edit"></i>修改图书
				</h2>
			</div>
  <div class="widget-body clearfix" style="padding:25px;">



              <form method="post" action="/13110100825/bookstore/Admin/Index/updBooks" enctype="multipart/form-data">
                  <input type="hidden" name="bid" value="<?php echo ($books["bid"]); ?>"/>
							<div class="control-group ">
								<label for="form_name">书名:</label>
								<div class="controls"><input class="btn-block" type="text" name="bname" id="form_name" required value="<?php echo ($books["bname"]); ?>"></div>
							</div>

                  <div class="form-group">
                      <label>封面</label>
                      <input type="file" name="pic" >
                  </div>

                          <div class="control-group ">
                              <label for="form_developer">作者</label>
                              <div class="controls"><input class="btn-block" type="text" name="writer" id="form_developer"   value="<?php echo ($books["writer"]); ?>"></div>
                          </div>

                  <div class="control-group ">
                      <label>出版社</label>
                      <div class="controls"><input class="btn-block" type="text" name="issue" required value="<?php echo ($books["issue"]); ?>"></div>
                  </div>

                  <div class="control-group ">
                      <label>出版年份</label>
                      <div class="controls"><input class="btn-block" type="text" name="issuetime" required value="<?php echo ($books["issuetime"]); ?>"></div>
                  </div>


                          书籍类型：
                          <select name="cid" onChange="redirec(document.frm.s1.options.selectedIndex)">
                              <OPTION VALUE="0">请选择书籍类型</OPTION>
                              <?php if(is_array($classlist)): $i = 0; $__LIST__ = $classlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><OPTION VALUE="<?php echo ($vo["cid"]); ?>" name="class"><?php echo ($vo["class"]); ?></OPTION><?php endforeach; endif; else: echo "" ;endif; ?>
                          </select>

                          书籍标签：
                          <select name="sid">
                              <option value="请选择" selected>请选择</option>
                              <?php if(is_array($signs)): $i = 0; $__LIST__ = $signs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$signs): $mod = ($i % 2 );++$i;?><OPTION VALUE="<?php echo ($signs["sid"]); ?>"><?php echo ($signs["sign"]); ?></OPTION><?php endforeach; endif; else: echo "" ;endif; ?>
                          </select>

                      <script language="javascript">
                          //获取一级菜单长度
                          var select1_len = document.frm.s1.options.length;
                          var select2 = new Array(select1_len);
                          //把一级菜单都设为数组
                          for (i=0; i<select1_len; i++)
                          { select2[i] = new Array();}
                          //定义基本选项
                          select2[0][0] = new Option("请选择", " ");

                          select2[1][0] = new Option("北京", " ");
                          select2[1][1] = new Option("上海", " ");
                          select2[1][2] = new Option("重庆", " ");

                          select2[2][0] = new Option("杭州", " ");
                          select2[2][1] = new Option("温州", " ");
                          select2[2][2] = new Option("金华", " ");

                          select2[3][0] = new Option("南京", " ");
                          select2[3][1] = new Option("无锡", " ");
                          select2[3][2] = new Option("徐州", " ");

                          select2[4][0] = new Option("哈尔滨", " ");
                          select2[4][1] = new Option("牡丹江", " ");
                          select2[4][2] = new Option("齐齐哈尔", " ");
                          //联动函数
                          function redirec(x)
                          {
                              var temp = document.frm.s2;
                              for (i=0;i<select2[x].length;i++)
                              { temp.options[i]=new Option(select2[x][i].text,select2[x][i].value);}
                              temp.options[0].selected=true;
                          }
                      </script>


                  <div class="control-group ">
                      <label>字数</label>
                      <div class="controls"><input class="btn-block" type="text" name="number" required value=""></div>
                  </div>

      		<div class="form-group">
							<button type="submit" class="btn btn-large btn-success btn-block">Update App</button></div>
						</form>
					</div>  

</div>
</div>

		<!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/13110100825/bookstore/Public/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/13110100825/bookstore/Public/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/13110100825/bookstore/Public/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/13110100825/bookstore/Public/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/13110100825/bookstore/Public/assets/js/realm.js"></script>
    <script type="text/javascript"src="/13110100825/bookstore/Public/bootstrap/bootstrap-wizard.min.js"></script>
  </body>
</html>